package com.joker.orange.domain.bo;

import com.joker.common.core.domain.BaseEntity;
import com.joker.common.core.validate.AddGroup;
import com.joker.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 小说章节业务对象 t_novel_chapter
 *
 * @author Joker
 * @date 2024-06-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class NovelChapterBo extends BaseEntity {

    /**
     * 唯一标识
     */
    @NotNull(message = "唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 小说ID
     */
    @NotNull(message = "小说ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long novelId;

    /**
     * 章节内容
     */
    @NotBlank(message = "章节内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chapterContent;

    /**
     * 章节标题
     */
    @NotBlank(message = "章节标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chapterTitle;

    /**
     * 收费类型（0-免费看、1-VIP可看、2-钻石观看）
     */
    @NotBlank(message = "收费类型（0-免费看、1-VIP可看、2-钻石观看）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String chargeType;

    /**
     * 消耗钻石
     */
    @NotNull(message = "消耗钻石不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal consumeDiamond;

    /**
     * 备注
     */
    private String remark;


}
